Fedora Bible 2011 Edition by Christopher Negus & Eric Foster-Johnson

Fedora Bible 2011 Edition by Christopher Negus & Eric Foster-Johnson

Author:Christopher Negus & Eric Foster-Johnson
Language: eng
Format: epub
Publisher: Wiley
Published: 2011-03-09T16:00:00+00:00


In this manner, /etc/rc0.d/K05atd, /etc/rc1.d/K05atd, /etc/rc2.d/K05atd, /etc/rc3.d/S95atd, /etc/rc4.d/S95atd, /etc/rc5.d/S95atd, and /etc/rc6.d/K05atd are all symbolic links to /etc/init.d/atd. Using this simple, consistent mechanism, you can customize which programs are started at boot time.

Understanding what startup scripts do

Despite all the complicated rcXs, Ss, and Ks, the form of each startup script is really quite simple. Because they are in plain text, you can just open one with a text editor to see what it does. For the most part, a run-level script can be run with a start option, a stop option, and possibly a restart option. For example, the following lines are part of the contents of the smb script, defining what happens when the script is run with different options to start or stop the Samba file and print service:

#!/bin/sh

#

# chkconfig: - 91 35

# description: Starts and stops the Samba smbd daemon \

# used to provide SMB network services.

.

.

.

start() {

KIND="SMB"

echo -n $"Starting $KIND services:"

daemon smbd $SMBDOPTIONS

RETVAL=$?

echo

[ $RETVAL -eq 0] && touch /var/lock/subsys/smb || \

RETVAL=1

return $RETVAL

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.